/*
 *  @ProductName@
 *  Copyright (C) @CopyrightYear@
 *    National Institute of Advanced Industrial Science and Technology (AIST)
 *    Registration Number: @AISTRegistrationNumber@
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

package jp.go.aist.six.test.util.castor.persist.cascading;

import jp.go.aist.six.test.util.castor.persist.Category;
import jp.go.aist.six.util.castor.CastorDao;



/**
 * @author  Akihito Nakamura, AIST
 * @version $Id: StateDao.java 161 2010-06-28 14:24:23Z nakamura5akihito $
 */
public class CategoryDao
    extends CastorDao<Integer, Category>
{

    public CategoryDao()
    {
        super( Category.class );
    }



    //**************************************************************
    //  Dao, CastorDao
    //**************************************************************

//    @Override
//    protected void _daoBeforeCreate(
//                    final Category object
//                    )
//    throws PersistenceException
//    {
//        Vector<Product>  products = object.getProducts();
//        if (products != null  &&  products.size() > 0) {
//            for (Product  product : products) {
//                Product  p_product = _daoLoadOrCreate( Product.class, product );
//                if (p_product != null  &&  p_product != product) {
//                    p_product.addCategories( object );
//                }
//            }
//        }
//    }

}
// StateDao
